<?php

class m130612_040903_init extends CDbMigration
{
	public function up() {
		$columns = array(
			'id' => 'pk',
			'title' => 'string',
			'content' => 'text',
		);
		$this -> createTable('posts', $columns);
	
		$columns = array(
			'id' => 'pk',
			'postid' => 'integer',
			'content' => 'text',
		);
		$this -> createTable('comments', $columns);
		
	}

	public function down() {
		echo "m130612_040903_init does not support migration down.\n";
		return false;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}